<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
    {% ifequal exist 0 %}
        <a href="{% url 'login' %}">点击登录</a>
    {% endifequal %}
    {% ifequal exist 1 %}
        <a href="{% url 'userpage' %}">{{ userName }}欢迎您</a>
    {% endifequal %}
    {% ifequal exist 2 %}
        error
    {% endifequal %}

</body>
</html>